package model;

import org.newdawn.slick.SlickException;

public class HorizMovPlatform extends AgilePlatform
{
	
	private double vx = 0.01; // TODO brauchbaren Wert finden
	
	public HorizMovPlatform(double cX, double cY) throws SlickException
	{
		super(cX, cY);
	}
	
	public Type getType()
	{
		return Type.RECHTSLINKS;
	}
	
	public void move()
	{
		setX(getX() + vx);
		if (this.getX() + this.getWidth() > 1 || this.getX() < 0)
		{
			vx *= -1;
		}
		
	}
	
}
